---
title: Install LangChain
sidebarTitle: Install
mode: wide
---

import AlphaCallout from '/snippets/alpha-lc-callout.mdx';

<AlphaCallout />

To install the core LangChain package:

:::python
<CodeGroup>
    ```bash pip
    pip install --pre -U langchain
    ```

    ```bash uv
    uv add --prerelease=allow langchain
    ```
</CodeGroup>
:::

:::js
    <CodeGroup>
    ```bash npm
    npm install langchain@next
    ```

    ```bash pnpm
    pnpm add langchain@next
    ```

    ```bash yarn
    yarn add langchain@next
    ```

    ```bash bun
    bun add langchain@next
    ```
    </CodeGroup>
:::

LangChain provides integrations to hundreds of LLMs and thousands of other integrations. To avoid package bloat, these live in independent provider packages. For example:

:::python
<CodeGroup>
    ```bash pip
    # Installing the OpenAI integration
    pip install -U langchain-openai
    # Installing the Anthropic integration
    pip install -U langchain-anthropic
    ```
    ```bash uv
    # Installing the OpenAI integration
    uv add langchain-openai
    # Installing the Anthropic integration
    uv add langchain-anthropic
    ```
</CodeGroup>

:::

:::js
<CodeGroup>
    ```bash npm
    # Installing the OpenAI integration
    npm install @langchain/openai@next
    # Installing the Anthropic integration
    npm install @langchain/anthropic@next
    ```

    ```bash pnpm
    # Installing the OpenAI integration
    pnpm add @langchain/openai@next
    # Installing the Anthropic integration
    pnpm add @langchain/anthropic@next
    ```

    ```bash yarn
    # Installing the OpenAI integration
    yarn add @langchain/openai@next
    # Installing the Anthropic integration
    yarn add @langchain/anthropic@next
    ```

    ```bash bun
    # Installing the OpenAI integration
    bun add @langchain/openai@next
    # Installing the Anthropic integration
    bun add @langchain/anthropic@next
    ```
</CodeGroup>
:::

<Tip>
See the [Integrations tab](/oss/integrations/providers) for a full list of available integrations.
</Tip>
